import request from "@/utils/request";

// 查询设备类型列表
export function listType(query) {
  return request({
    url: "/system/type/list",
    method: "get",
    params: query,
  });
}

// 查询设备类型详细
export function getType(deviceTypeId) {
  return request({
    url: "/system/type/" + deviceTypeId,
    method: "get",
  });
}

// 新增设备类型
export function addType(data) {
  return request({
    url: "/system/type",
    method: "post",
    data: data,
  });
}

// 修改设备类型
export function updateType(data) {
  return request({
    url: "/system/type",
    method: "put",
    data: data,
  });
}

// 删除设备类型
export function delType(deviceTypeId) {
  return request({
    url: "/system/type/" + deviceTypeId,
    method: "delete",
  });
}
